import {renderComponent} from "../react-dom/index"
import {queueSetState} from "./setStateQueue"
class Component{
    constructor(props={}){
        this.props =props;
        this.state = {} 
    }
    setState(stateChange){
        //对象拷贝
        // Object.assign(this.state,stateChange);
        // //渲染组件
        // renderComponent(this);


        queueSetState(stateChange,this);
    }
}
export default Component;